<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:69:"/home/wwwroot/www.xgw0851.com/application/index/view/index/index.html";i:1530283379;s:69:"/home/wwwroot/www.xgw0851.com/application/index/view/public/base.html";i:1530280572;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title><?php echo $title; ?></title>
<link rel="stylesheet" href="__PUBLIC__/xsd/css/mui.min.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/xsd/css/icons-extra.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/xsd/css/app.css?v1111121" />

</head>
<!--/head-->
<body>


	<!--/header-->

<style>
    .mui-row.mui-fullscreen>[class*="mui-col-"] {
        height: 100%;
    }

    .mui-col-xs-3,
    .mui-col-xs-9 {
        overflow-y: auto;
        height: 100%;
    }

    .mui-segmented-control .mui-control-item {
        line-height: 50px;
        width: 100%;
    }

    .mui-segmented-control.mui-segmented-control-inverted .mui-control-item.mui-active {
        background-color: #fff;
    }
    .mui-toast-container {
        bottom: 50%;
    }

    .mui-card .mui-control-content {
      padding: 10px;
    }

    .mui-control-content {
      height: 600px;
    }

    .mui-table-view .mui-media-object {
         line-height: 100px;
         max-width: 100px;
        height: 100px;
        width: 33.333333%
    }


    .mui-col-sm-3{
      width: 33.3333333%;
    }
    .price{
      color: #f60;
      font-size: 0.475342rem;
    }

    .mui-table-view-cell.mui-active{
        background-color: #fff
    }
    .mui-numbox{
      height: 25px;
      margin-top: 5px;
    }
    .mui-card img{
      width: 100%;
    }
    .foodprice::before {

    content: '';

}
</style>
<header class="mui-bar mui-bar-nav" style="z-index:7">
      <h1 class="mui-title">店铺列表</h1>
      <a class="mui-icon mui-icon-contact mui-pull-right" href="<?php echo url('index/user/index'); ?>"></a>
</header>
<div class="mui-content"  >
  <ul class="mui-table-view">
      <li class="mui-table-view-cell mui-media">
          <a href="<?php echo url('index/stindex'); ?>">
              <img class="mui-media-object mui-pull-left" src="__PUBLIC__/images/getheadimg.png">
              <div class="mui-media-body">
                  鲜果屋金元国际店
                  <p class='mui-ellipsis'>地址:金元国际新城广场</p>
              </div>
          </a>
      </li>
      <li class="mui-table-view-cell mui-media">
          <a href="<?php echo url('index/qsps'); ?>">
              <img class="mui-media-object mui-pull-left" src="__PUBLIC__/images/getheadimg.png">
              <div class="mui-media-body">
                    鲜果屋贵阳配送站
                  <p class='mui-ellipsis'>配送地点:贵阳饭店</p>
              </div>
          </a>
      </li>
      <li class="mui-table-view-cell mui-media">
          <a href="<?php echo url('index/frank'); ?>">
              <img class="mui-media-object mui-pull-left" src="__PUBLIC__/images/getheadimg.png">
              <div class="mui-media-body">
                  全省包邮
                  <p class='mui-ellipsis'></p>
              </div>
          </a>
      </li>
  </ul>
</div>
<style>
.mui-table-view .mui-media-object {
    line-height: 50px;
    max-width: 50px;
    height: 50px;
    width: 33.333333%;
}
</style>



<!--/#footer-->

<script src="__PUBLIC__/js/jquery.js"></script>
<script src="__PUBLIC__/xsd/js/mui.min.js"></script>
<script src="__PUBLIC__/xsd/js/flexible.js"></script>
<script src="__PUBLIC__/xsd/js/template.js"></script>

<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js" charset="utf-8"></script>
<script>
    wx.config(<?php echo json_encode($wxoptions); ?>);
    wx.error(function(e){
      	console.log(e);
      });
    wx.ready(function(){
      wx.onMenuShareTimeline({
          title: "<?php echo $title; ?>",
          link: "",
          imgUrl: "http://www.xgw0851.com/<?php echo get_cover(config('shareimg'), 'path'); ?>",
      });
      wx.onMenuShareAppMessage({
          title: "<?php echo $title; ?>",
          desc: "<?php echo config('sharedec'); ?>", // 分享描述
          link: "",
          imgUrl: "http://www.xgw0851.com/<?php echo get_cover(config('shareimg'), 'path'); ?>",

      });
    });
</script>


<?php if(!(empty(config('shop_hours')) || (config('shop_hours') instanceof \think\Collection && config('shop_hours')->isEmpty()))): ?>
<script>
  var time_range = function (beginTime, endTime) {
    var strb = beginTime.split (":");
    if (strb.length != 2) {
      return false;
    }

    var stre = endTime.split (":");
    if (stre.length != 2) {
      return false;
    }

    var b = new Date ();
    var e = new Date ();
    var n = new Date ();

    b.setHours (strb[0]);
    b.setMinutes (strb[1]);
    e.setHours (stre[0]);
    e.setMinutes (stre[1]);

    if (n.getTime () - b.getTime () > 0 && n.getTime () - e.getTime () < 0) {
      return true;
    } else {

      mui.alert("<?php echo config('shop_hours_message'); ?>", '公告');
      $('.mui-popup-buttons').html(' ')
      $('.mui-popup-inner').css('border-radius', '13px')
      return false;
    }
  }

  var shop_hours = "<?php echo config('shop_hours'); ?>";
  var hours_arr = shop_hours.split('-');
  time_range (hours_arr[0], hours_arr[1]);

</script>
<?php endif; if(config('is_rest') == '1'): ?>
<script>
mui.alert("<?php echo config('rest_message'); ?>", '公告');
$('.mui-popup-buttons').html(' ')
$('.mui-popup-inner').css('border-radius', '13px')
</script>
<?php endif; if(empty(\think\Cookie::get('positioninit')) || (\think\Cookie::get('positioninit') instanceof \think\Collection && \think\Cookie::get('positioninit')->isEmpty())): ?>
<script type="text/javascript" src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"></script>
<script>
   var geolocation = new qq.maps.Geolocation("QQ6BZ-24HC6-ZAXSZ-MTZAU-5MU2J-HEFEH", "鲜果屋");
    geolocation.getIpLocation(showPosition, showErr)
    function showPosition(position) {
      $.getJSON("<?php echo url('index/cart/changecookie'); ?>", {name: 'positioninit', 'val': position.lat+','+position.lng}, function(json, textStatus) {});
    };
    function showErr() {
      console.log('定位失败');
    };
</script>
<?php endif; ?>


<script>
  $(function(){
    $('.subsc').click(function(){
      // $.get("<?php echo url('index/clearusersession'); ?>", function(data){
      //   if(data.code == 1){
      //     window.location.href = "http://mp.weixin.qq.com/s/-AzpDTU7eAD24-R5QUP0wg"
      //   }
      // })
      //cookie('goodsmodel_id', $model_id);
      <?php switch(cookie('goodsmodel_id')): case "1":case "2":case "3": ?>
            mui.alert("<img src=<?php echo get_cover(config('frankserviceimg'), 'path'); ?> style='width:100%;'>", '长按扫二维码');
        <?php break; endswitch; if(!(empty($contact_qc) || ($contact_qc instanceof \think\Collection && $contact_qc->isEmpty()))): ?>
            mui.alert('<img src="<?php echo $contact_qc; ?>" style="width:100%;">', '长按扫二维码');
      <?php endif; ?>
    })


    $('.endlimit').each(function(){
      var $this = $(this);
      var stime = $this.attr('data-endtime');
      var starttime = new Date(stime.replace(/-/g,"/"))
      setInterval(function () {
        var nowtime = new Date();
        var time = starttime - nowtime;
        if(time > 0){
          var day = parseInt(time / 1000 / 60 / 60 / 24);
          var hour = parseInt(time / 1000 / 60 / 60 % 24);
          var minute = parseInt(time / 1000 / 60 % 60);
          var seconds = parseInt(time / 1000 % 60);
          $this.html("距结束还有:<span style='color:red'>"+ day + "天" + hour + "小时" + minute + "分钟" + seconds + "秒</span>");
        }

      }, 1000);
    })

    $('.hidecartbtn').each(function(){
      var id = $(this).attr('data-id')
      $('.cartbtn'+id).hide();
    })


  })
</script>
</body>
</html>
